package cn.befory.pojo;

import java.io.Serializable;

/**
 * 权限表
 * @author befory
 * @since 2019-10-7
 */
public class Perm implements Serializable {
    private static final long serialVersionUID = 1751561265092472762L;

    private Long id;
    /**
     * 标识
     */
    private String flag;
    /**
     * 名称
     */
    private String name;
    /**
     * 创建时间
     */
    private Long ct;
    /**
     * 状态(-1删除0正常)
     */
    private Integer status = 0;
    /**
     * 1菜单2功能
     */
    private Integer type;

    /**
     * 父级id
     */
    private Long parentId;

    private String url;

    private String icon;

    public Long getId() {
        return id;
    }

    public Perm setId(Long id) {
        this.id = id;
        return this;
    }

    public String getFlag() {
        return flag;
    }

    public Perm setFlag(String flag) {
        this.flag = flag;
        return this;
    }

    public String getName() {
        return name;
    }

    public Perm setName(String name) {
        this.name = name;
        return this;
    }

    public Long getCt() {
        return ct;
    }

    public Perm setCt(Long ct) {
        this.ct = ct;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public Perm setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public Perm setType(Integer type) {
        this.type = type;
        return this;
    }

    public Long getParentId() {
        return parentId;
    }

    public Perm setParentId(Long parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public Perm setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getIcon() {
        return icon;
    }

    public Perm setIcon(String icon) {
        this.icon = icon;
        return this;
    }
}
